
package com.hlkj.pay.dto.ad.query;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import lombok.Data;

/**
 * @author HlpayTeam
 * @date 2024/10/23 14:35
 */
@Data
public class HlRefundOrderQueryResultDto {

    /**
     * code : 1 msg : 请求成功 sign_type : RSA2 ins_id : M856437352 app_id :
     * APP_896564793562 data :
     * {"ins_id":"M856437352","app_id":"APP_896564793562","mch_order_no":"D20241023171359242849072","pay_order_id":"202410231714005658","mch_refund_no":"T20241023181556601422251","refund_amount":0.01,"refund_reason":"测试退款","refund_order_id":"202410231815587088","state":2}
     * sign :
     * McWTG6UDq80zDHjIFjB1eseYrDDOu1K8Hjqs/abv3gn9rhr5LxjWF+iMLmURZTyeFlwPvGYh9z51hgJlVI/En1KwLGKtX6zhGK53x9UlkW1D8AwbdolEKXtQdSoUer8r2ab8qU1for9POfPQ/TkxZfzoDGlqJ71sLoW4UG8avgJPtml2e6yxzplnTPsXTjfvLGLNKkqrZbCtO7rIE0L3oySHkcplzjS4VH9mS5eSwexv0aD/xpuT9tLlo0mts371KTt/S8jf7ysIYHjiPJTNqtKkNyVIcb6TbaG9AYqIfNxF4t9TEJ2j8KyC9RaH3UadfMLeDeD2EY1hCPSvrx+I8w==
     */

    private Integer code;

    private String msg;

    private String sign_type;

    private String ins_id;

    private String app_id;

    /**
     * ins_id : M856437352 app_id : APP_896564793562 mch_order_no :
     * D20241023171359242849072 pay_order_id : 202410231714005658 mch_refund_no :
     * T20241023181556601422251 refund_amount : 0.01 refund_reason : 测试退款
     * refund_order_id : 202410231815587088 state : 2
     */

    private Object data;

    private String sign;

    @Data
    public static class RefundOrderData {

        /**
         * ins_id : M856437352 app_id : APP_896564793562 mch_order_no :
         * D20241023171359242849072 pay_order_id : 202410231714005658 mch_refund_no :
         * T20241023181556601422251 refund_amount : 0.01 refund_reason : 测试退款
         * refund_order_id : 202410231815587088 state : 3
         */

        private String ins_id;

        private String app_id;

        private String mch_order_no;

        private String pay_order_id;

        private String mch_refund_no;

        private double refund_amount;

        private String refund_reason;

        private String refund_order_id;
        // 订单状态，0=退款失败，1=初始化，2=退款中，3=退款成功，
        private String state;
        private String success_time;

    }

}
